package com.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

//用户收货地址表
@Data//setter getter
@NoArgsConstructor//空参
@AllArgsConstructor//全参
@ToString//toString
public class Address {
    @TableId(type = IdType.AUTO)
    private Integer id;//地址id
    private String address;//地址
    private Integer uId;//用户id
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    private String name;//收货人名字
    private String phone;//收货人手机号
    private String location;//收货人所在地区
    private Boolean value;//默认收货状态
    private String state;//省
    private String city;//市
    private String district;//区
}
